﻿Imports TepcelDominio
Imports TepcelDAL
Public Class ProveedorBL
    Private ProveedorDAL As ProveedorDAL
    Public Sub New()
        ProveedorDAL = New ProveedorDAL
    End Sub
    Public Function NuevoProveedor(ByVal proveedor As Proveedor) As String
        Return ProveedorDAL.NuevoProveedor(proveedor)
    End Function

    Public Function GetAllFromProveedor() As List(Of Proveedor)
        Return ProveedorDAL.GetAllFromProveedor()
    End Function

    Public Function SearchFromProveedor(ByVal texto As String) As List(Of Proveedor)
        Return ProveedorDAL.SearchFromProveedor(texto)
    End Function

    Public Function DeleteProveedor(ByVal codigoProveedor As String) As Boolean
        Return ProveedorDAL.DeleteProveedor(codigoProveedor)
    End Function
End Class
